import random
team=[[],[],[]]
stuNum=eval(input("请输入学生人数:"))
stus=[]
while len(stus)<stuNum:
    stu=input("请输入学生姓名:")
    stus.append(stu)
print(stus)
for stu in stus:
    index=random.randint(0,2)
    team[index].append(stu)
print(team)
